//
//  EMWebViewController.m
//  EasyMoney
//
//  Created by 邓乐 on 2020/1/5.
//  Copyright © 2020 zh. All rights reserved.
//

#import "EMWebViewController.h"

@interface EMWebViewController ()

@end

@implementation EMWebViewController

- (void)viewDidLoad {
    self.userAgent = [[EMNetConfig sharedConfig] agentString];
    [super viewDidLoad];
    self.modalPresentationStyle = UIModalPresentationFullScreen;
}

+ (NSString*)relyingOnOtherUrlSchemeWithParams:(NSDictionary*)params
{
    return nil;
}

- (BOOL)handleWillOpenUrlWithParams:(NSDictionary*)params
{
    NSString* url = [params objectForKey:@"url"];
    if (SAFE_STRING(url).length < 4) {
        return NO;
    }
    //self. = url;
    self.url = url;

    return YES;
}

@end
